short cMeasureUnits;
kMeasurementInches for Inches
kMeasurementDecimalInches for Inches Decimal
kMeasurementMetric for Millimeters
kMeasurementPica for Picas
kMeasurementCicero for Ciceros
short cVertical;
kMeasurementInches for Inches
kMeasurementDecimalInches for Inches Decimal
kMeasurementMetric for Millimeters
kMeasurementPica for Picas
kMeasurementCicero for Ciceros
kMeasurementCustom for Custom
short nCustPoints;
Number of points between major tick marks on ruler (valid only if cVertical is kMeasurementCustom) in tenths of a point (250.0 = 2500).To change the measurement default, use the PMeasureUnits command.
PGetMeasureUnits meas;
if (meas.cMeasureUnits == 2)
PMeasureUnits(0, 0); // convert to inches
Comments or suggestions? Contact Adobe Developer Support